<?php

if (!defined('BASEPATH'))
	exit('No direct script access allowed');

/*
 * To change this template, choose Tools | Templates
* and open the template in the editor.
*/

/**
 * Description of category_model
 *
 * @author Subha Sundar Das (subhasundar.das@gmail.com)
 */
class Admin_healthtips_model extends CI_Model {

	//put your code here


	function __construct() {
		parent::__construct();
		log_message('debug', 'Init Model Initialized');
	}
	function get_healthtips()
	{
		$sql="select * from health_tips";
		$query=$this->db->query($sql);
		$result=$query->result();
		return $result;
	}
	function change_status($status=NUll, $id=NULL)
	{

		$sql="update health_tips set status=$status where id=$id";
		$this->db->query($sql);
	}

	function delete($id=NULL)
	{
		$sql="delete from health_tips where id=$id";
		$this->db->query($sql);
	}
	 

}